package com.whu.waterworks.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TRealtimedata entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_TEMPDATA", schema = "ZJ")
public class TempData implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private TempDataId id;
	private String value;

	// Constructors

	/** default constructor */
	public TempData() {
	}

	/** minimal constructor */
	public TempData(TempDataId id) {
		this.id = id;
	}

	/** full constructor */
	public TempData(TempDataId id, String value) {
		this.id = id;
		this.value = value;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "stationnum", column = @Column(name = "STATIONNUM", nullable = false, length = 50)),
			@AttributeOverride(name = "time", column = @Column(name = "TIME", nullable = false, length = 50)),
			@AttributeOverride(name = "type", column = @Column(name = "TYPE", nullable = false, length = 50)) })
	public TempDataId getId() {
		return this.id;
	}

	public void setId(TempDataId id) {
		this.id = id;
	}

	@Column(name = "VALUE", length = 50)
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
